package com.company.bookstore.service.book_module;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.bookstore.entities.book_module.Book;
import com.company.bookstore.entities.book_module.BookCategory;
import com.company.bookstore.entities.book_module.Category;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 姬深威
 * @since 2020-09-12
 */
public interface CategoryService extends IService<Category> {

    IPage<Category> getAllCategories(IPage<Book> page, Integer orderType);

    Category getCategoryById(Integer id);

    Integer  addCategory(Category category);

    Integer updateCategory(Category category);

    Integer deleteCategory(Integer cId);
}
